import java.util.concurrent.TimeUnit;

public class UrgentTask extends Thread{
    public void run(){
        int i =0;
        while (i<10){
            try{
                System.out.println("紧急任务处理，完成度"+i*10+"%+++++++++++++++");
                TimeUnit.MILLISECONDS.sleep(100);
                i+=2;
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("我已经完成了紧急任务100%+++++++++++++");
    }
}
